﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using mojoPortal.Web.RS.AppCode.Lib;

namespace mojoPortal.Web.RS
{
    public class RSUserIdentity : System.Web.UI.Page
    {
        ReadyServiceUser _rsUser;
        public RSUserIdentity()
        {
            _rsUser = RSCommonFunctions.GetReadyServiceUser();
            Session["RSUSER"] = _rsUser;
            Session["COMPANYID"] = _rsUser.RSCompanyId;
        }
        public string RSRoleName {
            get
            {
                return _rsUser.RSRoleName;
            } 
        }
        public string RSGroupName
        {
            get
            {
                return _rsUser.RSGroupName;
            }
        }
        public bool RSCanWrite {
            get
            {
                return _rsUser.RSCanWrite;
            }
        }
        public bool RSCanDelete
        {
            get
            {
                return _rsUser.RSCanDelete;
            }
        }
        public string RSCurrentUser
        {
            get
            {
                return _rsUser.RSCurrentUser;
            }
        }
        public string RSLastName {
            get
            {
                return _rsUser.RSLastName;
            }
        }
        public string RSFirstName {
            get
            {
                return _rsUser.RSFirstName;
            }
        }
        public int RSEmployeeId {
            get
            {
                return _rsUser.RSEmployeeId;
            }
        }
        public int RSCompanyId {
            get 
            { 
                return _rsUser.RSCompanyId; 
            }
        }
        public int RSReportsTo
        {
            get
            {
                return _rsUser.RSReportsTo;
            }
        }
        public string RSCompanyName
        {
            get
            {
                return _rsUser.RSCompanyName;
            }
        }
        public string RSCompanyEmail {
            get
            {
                return _rsUser.RSCompanyEmail;
            }
        }
        public string RSCompanyPhone
        {
            get
            {
                return _rsUser.RSCompanyPhone;
            }
        }
        public string RSSpecialPermission {
            get
            {
                return _rsUser.RSSpecialPermission;
            }
        }
        public bool RSIsUserAuthenticated {
            get
            {
                return _rsUser.RSIsUserAuthenticated;
            }
        }
        public bool RSIsLicAgent
        {
            get
            {
                return _rsUser.RSIsLicAgent;
            }
        }
        public string RSPIN
        {
            get
            {
                return _rsUser.MobilePin;
            }
        }
        public string RSPhotoPath
        {
            get
            {
                return _rsUser.RSPhotoPath;
            }
        }
        public string RSAttachmentPath
        {
            get
            {
                return _rsUser.RSAttachmentPath;
            }
        }
    }
}